package com.vivachek.protocol.enums

/**
 * @Author: YCB
 * @Time: 2022/10/9 10:43:33
 * @Email: congbin.yuan@vivachek.com
 * @Description: 血糖标记
 */
enum class Flag(val type:Int,val desc:String){
    NONE(0,"无状态"),
    FPG(17,"餐前/FPG"),
    PPG(34,"餐后/PPG")

    ;

    companion object{
        fun convert(type: Int):Flag{
            values().forEach {
                if (it.type==type){
                    return it
                }
            }
            return NONE
        }
    }
}
